home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 6 / LIGHT-ROM 6.iso / demos / polytran / nugraf / disk6 / data.6 / 3dsmax / install.txt
Encoding:
Text File  |  1998-03-26  |  13.9 KB  |  298 lines

  1.         How to Install the 3DS MAX Plugins
  2.         ----------------------------------
  3.  
  4. NOTES:
  5.     1) For those receiving PolyTrans or NuGraf on a CDROM,
  6.        the MAX plug-ins will be copied to your hard disk
  7.        to the '3dsmax' sub-directory located in the main
  8.        "polytrans" or "nugraf" installation directory.
  9.  
  10.     2) The MAX plugins for the demonstration versions of
  11.        PolyTrans and NuGraf are available via the following
  12.        page on the Okino WEB site:
  13.  
  14.         http://www.okino.com/conv/max_demo.htm
  15.  
  16.     3) The MAX plugins do not ship together with the v2.0
  17.        PolyTrans and NuGraf incremental updates. The MAX
  18.        plugins are shipped separately in a ZIP file due
  19.        to size. Please email support@okino.com if you do
  20.        not have this separate ZIP file.
  21.  
  22.     4) The MAX plugins do not function with the VRML
  23.        export-only version of PolyTrans.
  24.  
  25. 3DS MAX v2 Problems - *** IMPORTANT ***
  26. ---------------------------------------
  27.  
  28. There are currently 2 problems with MAX2:
  29.  
  30. 1) MAX v2 will exit immediately if you install the PolyTrans
  31.    plugins and select the "File/Import" menu item. This is
  32.    because there is now too many geometry import converters
  33.    and it overflows the static 2048 byte name buffer in MAX2.
  34.    We had reported this bug to Kinetix during the beta program
  35.    but it was not fixed.
  36.  
  37.    Temporary solution: since MAX2 crashes due to too many 
  38.        PolyTrans converters, a temporary solution is to 
  39.        disable some of the PolyTrans import converter DLLs.
  40.        To do this, go to the "vcplugin" sub-directory of the
  41.        main NuGraf or PolyTrans program and rename some of the
  42.        files which have .DLL extensions to ".DLL.OLD". Do this
  43.        for the import converters which you do not need to use,
  44.        such as VistaPro, USGS DEM, NFF, Imagine, etc.
  45.  
  46. 2) MAX2 sorts the drop-down list of filetypes shown on the 
  47.    File/Import and File/Export filename selector dialog box.
  48.    This did not occur in MAX v1.2. This is a problem for the
  49.    PolyTrans converters because it expects the file type list
  50.    to be unsorted. It does not affect performance but it does
  51.    mess up our file type list (as you will see). Hopefully
  52.    Kinetix will fix this soon.
  53.  
  54. Installing the MAX v1.2 and MAX v2 Plugins
  55. ------------------------------------------
  56.  
  57. There are two plugin modules located within the "3dsmax\max12" and
  58. "3dsmax\max2" subdirectories in this distribution. These are 3DS MAX 
  59. v1.2 and v2 plugins that fool MAX into believing that it is 
  60. communicating directly with the PolyTrans import/export converters.
  61.  
  62. To install the plugins:
  63.  
  64. 1) If using 3DS Studio MAX v1.2, copy the two plugins from the 
  65.    "3dsmax/max12" sub-directory of this distribution to the 3DS
  66.    MAX v1.2 "plugin" directory.
  67.  
  68. 1b) If using 3DS Studio MAX v2, copy the two plugins from the 
  69.     "3dsmax/max2" sub-directory of this distribution to the 3DS
  70.     MAX v2 "plugin" directory.
  71.  
  72. 2) If using Windows 95, skip to section (2b)
  73.  
  74.    Next, go to the Windows NT control panel, double click on the
  75.    "System" icon and follow these instructions:
  76.  
  77.     - Choose the "Environment" tab
  78.     - In the "System Variables" section click on the "Path"
  79.           variable
  80.     - At the bottom of the dialog box place the cursor in the
  81.       "Value" type-in box and move the cursor all the way to the
  82.        end of the current path text.
  83.     - Assuming NuGraf is currently installed in "c:\program
  84.       files\nugraf", append the following to the current "Path"
  85.       variable (if using PolyTrans then replace "polytrans" for
  86.        "nugraf"):
  87.  
  88.       ;c:\program files\nugraf
  89.  
  90.     - Press the "Set" button and then the 'OK" button on the dialog box.
  91.  
  92. 2b) If using Windows 95:
  93.  
  94.     Using a text editor, such as notepad, edit the "autoexec.bat" file
  95.     located in the root directory of your "c:" hard disk. In the
  96.     autoexec.bat file find the environment variable called "Path".
  97.     Append to this variable a suitable modified version of the
  98.     following line (which assumes NuGraf is currently installed in
  99.     "c:\program files\nugraf"). If using PolyTrans then replace
  100.     "polytrans" for "nugraf"):
  101.  
  102.       ;c:\progra~1\nugraf
  103.  
  104.     NOTE: This file path uses the old DOS "8.3" naming convention in
  105.        which the directory "program files" has been replaced with
  106.        the 8.3 version of "progra~1".
  107.  
  108.     If there is no autoexec.bat file then create one. If there is no
  109.     'Path' environment variable within the autoexec.bat file then set
  110.     up the autoexec.bat file to contain the following (with the 
  111.     correct path):
  112.  
  113.      Path c:\progra~1\nugraf
  114.  
  115.  
  116. 3) For Windows NT, log out out of Windows NT and log back in.
  117.    For Windows 95, restart Windows.
  118.  
  119.    This is necessary so that the "PATH" variable gets propagated
  120.    throughout Windows.
  121.  
  122. 4) Execute NuGraf or PolyTrans and (optionally) exit the program. 
  123.    This will initialize an environment variable which will tell 3D
  124.    Studio MAX where the PolyTrans import/export converter modules
  125.    are located.
  126.  
  127. 5) Execute 3D Studio MAX. All of the PolyTrans import/export converters
  128.    should now be available via the File/Import or File/Export file
  129.    selector.
  130.  
  131. Exporting Data Directly to a SoftImage Database
  132. -----------------------------------------------
  133.  
  134. Please follow these steps to export a 3DS MAX scene direclty into a
  135. SoftImage database. Basically the important step to consider is #3
  136. in which you are to enter an arbitrary filename (a.dsc) when asked
  137. by MAX - in actual fact there is no reason why a filename is
  138. required to export a database to SoftImage but 3DS MAX will always
  139. ask you for a filename regardless.
  140.  
  141. 1) Choose 'File/Export' from the 3DS MAX main menu.
  142.  
  143. 2) Choose the "SoftImage Files" export option from the drop-down box.
  144.  
  145. 3) Enter the arbitrary filename "a.dsc" in the file name selector.
  146.    This filename is not used by the export converter but MAX always
  147.    asks for a filename regardless.
  148.  
  149. 4) Press "OK" on the "General Options" dialog box which appears next.
  150.  
  151. 5) When the "SoftImage Export Filter" dialog box appears click on 
  152.    the "Output SoftImage Scene Files" checkbox then click on "OK".
  153.  
  154. 6) When the "Scene Name Request" dialog box appears enter a name for 
  155.    SoftImage database scene. Click "OK" to start exporting. The scene
  156.    will then appear within the chosen SoftImage database.
  157.  
  158. Trouble Shooting
  159. ----------------
  160.  
  161. 1) If the import/export converters do not show up in the 3DS MAX 
  162.    import/export menu then the 'Path' environment variable has not 
  163.    been initialized properly. This 'Path' variable is necessary so 
  164.    that Microsoft Windows knows where to locate and load the main
  165.    NuGraf DLL modules from (vc4_nu.dll, vc4_imp.dll). If you had
  166.    placed quotation marks around the path name then try removing
  167.    these quotes and try again (it has been known to work).
  168.  
  169.    A very rare few number of people report that they cannot get the
  170.    MAX plug-ins to operate. We assure you that the MAX plug-ins do
  171.    indeed work. It is known that some MAX plug-ins (from other
  172.    companies) may not work due to the order in which 3DS MAX loads
  173.    the plug-in modules at start-up time. One trick that has solved
  174.    the loading problem is to physically move every file located in
  175.    the 3DS MAX 'stdplugs' directory to another temporary directory
  176.    (using Windows Explorer), then moving the files back again to 
  177.    the 'stdplugs' directory; this causes the order in which the 
  178.    plug-ins are loaded to change.
  179.  
  180.    Please also note that 3DS MAX must be executed from the Windows
  181.    user interface (via the 'Start' menu or an icon) in order for the
  182.    MAX plug-ins to load properly. See point #2 below.
  183.  
  184.    Worse comes to worse, copy all of the files that begin with the
  185.    letters "vc4_" (such as vc4_nu.dll and vc4_imp.dll) from the main
  186.    PolyTrans or NuGraf directory to the main MAX directory. 
  187.    This should always make the MAX plugins function properly. However,
  188.    you must ensure that these DLL modules get updated in the future
  189.    as new DLLs are distributed by Okino Computer Graphics. 
  190.  
  191. 2) If you are executing 3DSMAX.EXE from a DOS command line, in Windows
  192.    NT, then the MAX plugins probably won't work unless you modify the
  193.    'PATH' variable in c:\autoexec.bat.
  194.  
  195. Theory of Operation
  196. -------------------
  197.  
  198. When 3DS MAX is loaded it looks in the "max/plugins" directory where it
  199. finds ptimp.dli (the PolyTrans import module) and ptexp.dle (the PolyTrans
  200. export module). These 2 plugins "fool" MAX into believing that there
  201. are several dozen import/export converter DLL modules located within
  202. the "max/plugins" directory; instead, the actual import/export
  203. converter DLLs are located in the Okino "vcplugin" directory and in
  204. the Okino vc4_nu.dll file. The function of the ptimp.dli and ptexp.dle
  205. plugin modules is to make the PolyTrans import/export DLLs available
  206. through the 3DS MAX "File/Import" and "File/Export" menu items.
  207.  
  208. After the ptimp.dli pr ptexp.dle DLL modules are loaded into MAX, 
  209. Microsoft Windows also must load in "vc4_nu.dll" and "vc4_imp.dll"
  210. which are necessary Okino core files. In order to locate these files
  211. Microsoft Windows searches for them in the "Path" environment variable
  212. where it locates them in the home NuGraf or PolyTrans directory (this 
  213. is why the "Path" variable must be set up to include the NuGraf or
  214. PolyTrans home directory).
  215.  
  216. Now, when you choose "File/Import" or "File/Export" from MAX, the
  217. ptimp.dli or ptexp.dle DLL module is executed. The DLL then locates
  218. where NuGraf or PolyTrans is located on your hard disk and determines
  219. which import or export converters are available in the main NuGraf or
  220. PolyTrans program. These import or export converters are then listed
  221. in the 3DS MAX file import/export selector dialog box. After you choose
  222. a specific file format to import/export, the ptimp.dli or ptexp.dle DLL
  223. modules route the 3DS MAX scene data directly to the PolyTrans 
  224. import/export converter modules using an unseen data routing process. 
  225. To the user it will seem as though the import/export process is being 
  226. performed by DLL modules located within the max/plugins directory where 
  227. in reality  they are occuring using the converters located in the main 
  228. NuGraf or PolyTrans directory. In this manner the PolyTrans import/export
  229. DLLs do not have to be duplicated in the max/plugins directory.
  230.  
  231. Known Problems
  232. --------------
  233.  
  234. 1) Mixing import/export converters that handle the same file format causes
  235.    problems with MAX 1.2. For example, you may choose the "PolyTrans 3D
  236.    Studio" import converter but find instead that the default 3DS MAX
  237.    "3D Studio" import converter is executed instead. This is a bug in
  238.    MAX 1.2 (Kinetix is aware of this problem). The only solution to this
  239.    problem at this time is to disable the default MAX  import/export
  240.    converter(s) that are causing trouble - this can be done by going 
  241.    into the MAX "plugins" or "stdplugins" directory and renaming the
  242.    extension of the troublesome import or export converter to ".old".
  243.    This problem has been corrected in 3DS MAX v2.0.
  244.  
  245. 2) The PolyTrans plugins for MAX currently do not support hierarchy or
  246.    animation. This is not to say that we at Okino are not spending 150%
  247.    of our time working on this functionality! An explanation of the 3DS
  248.    MAX internal animation system is in order here so that you, as a user
  249.    of MAX and the PolyTrans plugins, can gain a better understanding of
  250.    MAX's complex animation system. First, in other traditional animation
  251.    programs all animation data is typically stored as explicit scale,
  252.    rotate and translate keyframes with bezier or tension/continituity and
  253.    bias tangent control. If MAX used this simple animation mechanism then
  254.    life would be simple, but in fact MAX uses the most complex animation
  255.    mechanism we have come across. MAX has plugin animation controllers 
  256.    which allow keyframe data to be stored as explicit X/Y/Z locations,
  257.    single X/Y/Z motion path points, TCB interpolated angle/axis rotations,
  258.    TCB interpolated quaternions, bezier-interpolated quaternions, bezier
  259.    interpolated Euler angles, smooth interpolated quaternions, and so on.
  260.    It also allows for a plugin-defined transformation matrix to be defined
  261.    at each keyframe instead of explicit scale/rotate/translate values. 
  262.  
  263.    WHAT DOES THIS ALL MEAN? It means:
  264.  
  265.     1) As a user of 3DS MAX you have much freedom to do animation
  266.        without too many limitations from the underlying structure
  267.        of the program.
  268.  
  269.     2) As a company which writes animation translation software,
  270.        this flexibility makes it near-impossible to properly
  271.        convert animation data to other file formats such as
  272.        SoftImage, DirectX and Lightwave!
  273.  
  274.    Whereas with other animation programs we only have to deal with bezier
  275.    or TCB interpolated lists of scale/rotate/translate keyframes, with MAX
  276.    we have to deal with a dozen or so methods by which animation keyframe
  277.    data can be defined or created by a user. Thus, for example, to convert
  278.    MAX rotation keyframes to Microsoft DirectX (which only uses quaternions)
  279.    we have to devise methods to convert the Euler/quaternion/explicit/tcb/
  280.    bezier/custom-controller/matrix/etc. rotation controller keyframes of MAX
  281.    into quaternion keyframes of Microsoft DirectX. This is a very hard 
  282.    problem with only approximate solutions in some cases (as can be seen by
  283.    exporting Character Studio animation data to .3ds format via the .3ds
  284.    export converter developed by Kinetix - it doesn't always work properly
  285.    which is more to do with the limitations of the .3ds file format than
  286.    with MAX itself).
  287.  
  288. Disabling the PolyTrans Converters in MAX
  289. -----------------------------------------
  290.  
  291. If you wish to temporarily disable the PolyTrans import converters inside
  292. 3DS MAX then exit 3DS MAX and rename the "ptimp.dli" file to something
  293. such as "ptimp.dli.old".
  294.  
  295. If you wish to temporarily disable the PolyTrans export converters inside
  296. 3DS MAX then exit 3DS MAX and rename the "ptexp.dle" file to something
  297. such as "ptexp.dle.old".
  298.